<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" isELIgnored="false" session="true"%>
<%@taglib prefix="s" uri="http://www.springframework.org/tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html>
<html>
<head>
	<base href="<%=basePath%>">
	<title><s:message code="M_6400_BIS_MDL_DEF_MANAGEMENT_TAG" /></title>
	<%@ include file="/page/comPage/comCSS.html"%>
	<%@ include file="/page/comPage/navbar.html"%>
</head>
<body>

<div class="container-fluid">
	<div class="col-sm-12 btnDivCss">
		<button class="btn btn-info" id="query_btn"><s:message code="QUERY_TAG" /></button>
		<button class="btn btn-primary" id="add_btn"><s:message code="ADD_TAG" /></button>
		<button class="btn btn-warning" id="update_btn"><s:message code="UPDATE_TAG" /></button>
		<button class="btn btn-primary" id="copy_btn"><s:message code="COPY_TAG" /></button>
		<button class="btn btn-danger" id="delete_btn"><s:message code="DELETE_TAG" /></button>
		<button class="btn btn-success" id="save_btn"><s:message code="SAVE_TAG" /></button>
		<button class="btn btn-warning" id="rollback_btn"><s:message code="ROLLBACK_TAG" /></button>
		<button class="btn btn-primary" id="clear_btn"><s:message code="CLEAR_TAG" /></button>
	</div>
	<div class="col-lg-4 col-md-4 col-sm-4 leftDiv">
		<fieldset>
			<legend><s:message code="MDL_LIST_TAG" /></legend>
		</fieldset>
		<div id="mdlDefListDiv" class="col-sm-12">
			<table id="mdlDefListGrd" style="height: 1px"></table>
			<div id="mdlDefListPg"></div>
		</div>
	</div>
	<div class="col-lg-8 col-md-8 col-sm-8 rightDiv">
		<div class="col-lg-12 col-md-12 col-sm-12">
			<ul id="mytab" class="nav nav-tabs">
				<li class="active"><a id="tab1" href="#tabPane_mdlDef" data-toggle="tab"> <s:message code="MDL_INFO_TAG" />
				</a></li>
				<%--<li><a id="tab2" href="#tabPane_bom" data-toggle="tab">  <s:message code="MTRL_INFO_TAG" />
                </a></li>
                <li><a id="tab3" href="#tabPane_level" data-toggle="tab">  <s:message code="MDL_GRADE_TAG" />
                </a></li>--%>
			</ul>
			<div class="tab-content">
				<!-- tab1 start-->
				<div class="tab-pane active row" id="tabPane_mdlDef">
					<br />
					<form id="mdlDefConditionForm" class="col-lg-12 col-md-12 col-sm-12 form-horizontal">
						<div class="form-group col-lg-6 col-md-6 col-sm-6">
							<label class="control-label col-lg-6 col-md-6 col-sm-6 keyCss" for="mdlIdTxt">
								<s:message code="MDL_ID_TAG" />
							</label>
							<div class="col-lg-6 col-md-6 col-sm-6">
								<input type="text" id="mdlIdTxt" class="form-control" maxlength="40"/>
							</div>
						</div>
						<div class="form-group col-lg-6 col-md-6 col-sm-6">
							<label class="control-label col-lg-6 col-md-6 col-sm-6 keyCss"
								   for="mdlDscTxt"> <s:message code="MDL_DSC_TAG" />
							</label>
							<div class="col-lg-6 col-md-6 col-sm-6">
								<input type="text" id="mdlDscTxt" class="form-control" />
							</div>
						</div>
						<div class="form-group col-lg-6 col-md-6 col-sm-6">
							<label class="control-label col-lg-6 col-md-6 col-sm-6 keyCss" for="mdlCateSel">
								<s:message code="MDL_CATE_TAG" />
							</label>
							<div class="col-lg-6 col-md-6 col-sm-6">
								<select id="mdlCateSel" class="form-control" style="width: 100%;"></select>
							</div>
						</div>
						<div class="form-group col-lg-6 col-md-6 col-sm-6">
							<label class="control-label col-lg-6 col-md-6 col-sm-6" for="mdlSizeTxt">
								<s:message code="MDL_SIZE_TAG" />
							</label>
							<div class="col-lg-6 col-md-6 col-sm-6">
								<input type="text" id="mdlSizeTxt" class="form-control" maxlength="4"/>
							</div>
						</div>
						<div class="form-group col-lg-6 col-md-6 col-sm-6">
							<label class="control-label col-lg-6 col-md-6 col-sm-6 keyCss" for="maxPFCntTxt">
								外箱最大装包数量
							</label>
							<div class="col-lg-6 col-md-6 col-sm-6">
								<input type="text" id="maxPFCntTxt" class="form-control intCss" />
							</div>
						</div>
						<div class="form-group col-lg-6 col-md-6 col-sm-6">
							<label class="control-label col-lg-6 col-md-6 col-sm-6 keyCss" for="pathIdSel">
								<s:message code="PATH_ID_TAG" />
							</label>
							<div class="col-lg-6 col-md-6 col-sm-6">
								<select id="pathIdSel" class="form-control" style="width: 100%;"></select>
							</div>
						</div>
						<div class="form-group col-lg-6 col-md-6 col-sm-6" hidden>
							<label class="control-label col-lg-6 col-md-6 col-sm-6" for="SWHtimeTxt">
								<s:message code="SWH_TIME_TAG" />
							</label>
							<div class="col-lg-6 col-md-6 col-sm-6">
								<input type="text" id="SWHtimeTxt" class="form-control" />
							</div>
						</div>
						<div class="form-group col-lg-6 col-md-6 col-sm-6">
							<label class="control-label col-lg-6 col-md-6 col-sm-6" for="validFlgSel">
								<s:message code="VALID_FLG_TAG" />
							</label>
							<div class="col-lg-6 col-md-6 col-sm-6">
								<select id="validFlgSel" class="form-control" style="width: 100%;"></select>
							</div>
						</div>
						<div class="form-group col-lg-6 col-md-6 col-sm-6">
							<label class="control-label col-lg-6 col-md-6 col-sm-6" for="lotFlgSel">
								单片/批次过账标识
							</label>
							<div class="col-lg-6 col-md-6 col-sm-6">
								<select id="lotFlgSel" class="form-control" style="width: 100%;"></select>
							</div>
						</div>
						<div class="form-group col-lg-6 col-md-6 col-sm-6">
							<label class="control-label col-lg-6 col-md-6 col-sm-6 keyCss" for="maxRwCntTxt">
								内包最大装片数量
							</label>
							<div class="col-lg-6 col-md-6 col-sm-6">
								<input type="text" id="maxRwCntTxt" class="form-control intCss" />
							</div>
						</div>
					</form>
				</div>
				<!-- tab1 end -->

				<!-- tab2 start-->
				<div class="tab-pane" id="tabPane_bom">
					<br />
					<div class="bomBtnDiv">
						<button id="add_bom_btn" class="btn btn-primary offset1"><s:message code="ADD_MTRL_TAG" /></button>
						<button id="update_bom_btn" class="btn btn-warning"><s:message code="UPDATE_MTRL_TAG" /></button>
						<button id="del_bom_btn" class="btn btn-danger"><s:message code="DEL_MTRL_TAG" /></button>
					</div>

					<br />
					<div id="bomListDiv" class="row">
						<table id="bomListGrd"></table>
						<div id="bomListPg"></div>
					</div>
				</div>
				<!-- tab2 end-->

				<!--tab3 start-->
				<div class="tab-pane" id="tabPane_level">
					<br />
					<div class="levelBtnDiv">
						<button id="add_level_btn" class="btn btn-primary offset1"><s:message code="ADD_GRADE_TAG" /></button>
						<button id="update_level_btn" class="btn btn-warning"><s:message code="UPDATE_GRADE_TAG" /></button>
						<button id="del_level_btn" class="btn btn-danger"><s:message code="DEL_GRADE_TAG" /></button>
					</div>

					<br />
					<div id="levelListDiv" class="row">
						<table id="levelListGrd"></table>
						<div id="levelListPg"></div>
					</div>
				</div>
				<!--  tab3 end -->
			</div>
		</div>
	</div>
</div>



<!-- 查询对话框 -->

<div id="queryMdlDefDialog" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="title" aria-hidden="true">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
				<h4 class="modal-title">
					<s:message code="QUERY_CONDITION_TAG" />
				</h4>
			</div>
			<!--Modal header-->
			<div class="modal-body">
				<div class="row">
					<form id="queryMdlDefDialog_mdlDefForm" class="row form-horizontal">
						<div class="control-group ">
							<label class="control-label col-lg-4" for="queryMdlDefDialog_mdlIdTxt"> <s:message code="MDL_ID_TAG" />
							</label>
							<div class="col-lg-3">
								<input type="text" id="queryMdlDefDialog_mdlIdTxt" class="form-control" />
							</div>
							<div class="col-lg-3">
								<label id="queryMdlDefDialog_helpLineSpn" class="help-inline control-label"> 模糊查询请使用<span style="color: red; font-weight: bold;">*</span>
								</label>
							</div>
						</div>
					</form>
				</div>
			</div>
			<!--Modal body-->
			<div class="modal-footer">
				<a id="queryMdlDefDialog_cancelBtn" class="btn" data-dismiss="modal"> <s:message code="CANCEL_TAG" />
				</a> <a id="queryMdlDefDialog_queryBtn" class="btn btn-primary"> <s:message code="QUERY_BTN_TAG" />
			</a>
			</div>
		</div>
	</div>
</div>

<!-- BOM 维护对话框 -->
<div id="bomEditDialog" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="title" aria-hidden="true">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
				<h4 class="modal-title">
					<s:message code="BOM_EDIT_DIALOG_TAG" />
				</h4>
			</div>
			<!--Modal header-->
			<div class="modal-body">
				<div class="row">
					<form id="bomEditDialogForm" class="row form-horizontal">
						<input type="text" id="bomEditDialog_mdlMtrlSeqIDTxt" class="form-control hide" />
						<div class="control-group">
							<label class="control-label col-lg-4 keyCss" for="bomEditDialog_mdlIdTxt"> <s:message code="MDL_ID_TAG" />
							</label>
							<div class="col-lg-6">
								<input type="text" id="bomEditDialog_mdlIdTxt" class="form-control" />
							</div>
						</div>
						<div class="control-group">
							<label class="control-label col-lg-4 keyCss" for="bomEditDialog_mtrlCatesel"> <s:message code="MTRL_CATE_TAG" />
							</label>
							<div class="col-lg-6">
								<select id="bomEditDialog_mtrlCatesel" class="form-control input-sm" style="width: 100%;"></select>
							</div>
						</div>
						<div class="control-group">
							<label class="control-label col-lg-4 keyCss" for="bomEditDialog_mtrlProdIDSel"> <s:message code="MTRL_PRODUCT_ID_TAG" />
							</label>
							<div class="col-lg-6">
								<select id="bomEditDialog_mtrlProdIDSel" class="form-control input-sm" style="width: 100%;"></select>
							</div>
						</div>

						<div class="control-group">
							<label class="control-label col-lg-4 keyCss" for="bomEditDialog_OpeIDSel"> <s:message code="OPE_ID_TAG" />
							</label>
							<div class="col-lg-6">
								<select id="bomEditDialog_OpeIDSel" class="form-control input-sm" style="width: 100%;"></select>
							</div>
						</div>
						<div class="control-group">
							<label class="control-label col-lg-4 keyCss" for="bomEditDialog_mtrlUseQtyTxt"> <s:message code="MTRL_USE_QTY_TAG" />
							</label>
							<div class="col-lg-6">
								<input id="bomEditDialog_mtrlUseQtyTxt" class="form-control input-sm"
									   onkeyup="value=value.replace(/[^\d\.]/g,'')">
							</div>
						</div>
						<%-- <div class="control-group">
                            <label class="control-label col-lg-4 keyCss" for="bomEditDialog_mtrlMkrTxt"> <s:message code="MTRL_MKR_TAG" />
                            </label>
                            <div class="col-lg-6">
                                <input id="bomEditDialog_mtrlMkrTxt" class="form-control input-sm">
                            </div>
                        </div> --%>
					</form>
				</div>
			</div>
			<!--Modal body-->
			<div class="modal-footer">
				<button type="button" class="btn btn-default" data-dismiss="modal"
						id="bomEditDialog_cancelBtn">
					<s:message code="CANCEL_TAG" />
				</button>
				<button type="button" class="btn btn-primary"
						id="bomEditDialog_saveBtn">
					<s:message code="UPATE_COMMIT_TAG" />
				</button>
			</div>
			<!--Modal footer-->
		</div>
	</div>
</div>

<!-- 产品等级维护 -->
<%--<div id="levelEditDialog" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="title" aria-hidden="true">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
				<h4 class="modal-title">
					<s:message code="PRD_GRADE_EDIT_DIALOG_TAG" />
				</h4>
			</div>
			<!--Modal header-->
			<div class="modal-body">
				<div class="row">
					<form id="levelEditDialogForm" class="row form-horizontal">
						<input type="text" id="bomEditDialog_mdlMtrlSeqIDTxt" class="form-control hide" />
						<div class="control-group">
							<label class="control-label col-lg-4 keyCss" for="levelEditDialog_Txt"> <s:message code="MDL_GRADE_TAG" />
							</label>
							<div class="col-lg-6">
								<input type="text" id="levelEditDialog_Txt" class="form-control" maxlength="2"/>
							</div>
						</div>
						<div class="control-group">
							<label class="control-label col-lg-4 keyCss" for="levelEditDialog_downTxt"> <s:message code="LOW_NG_LIMT" />
							</label>
							<div class="col-lg-6">
								<input type="text" id="levelEditDialog_downTxt" class="form-control"
									   onkeyup="this.value=this.value.replace(/[^0-9]/g,'')"
									   onafterpaste="this.value=this.value.replace(/[^0-9]/g,'')"/>
							</div>
						</div>
						<div class="control-group">
							<label class="control-label col-lg-4 keyCss" for="levelEditDialog_upTxt"> <s:message code="UP_NG_LIMT" />
							</label>
							<div class="col-lg-6">
								<input type="text" id="levelEditDialog_upTxt" class="form-control"
									   onkeyup="this.value=this.value.replace(/[^0-9]/g,'')"
									   onafterpaste="this.value=this.value.replace(/[^0-9]/g,'')"/>
							</div>
						</div>

					</form>
				</div>
			</div>
			<!--Modal body-->
			<div class="modal-footer">
				<a id="levelEditDialog_cancelBtn" class="btn" data-dismiss="modal"> <s:message code="CANCEL_TAG" />
				</a> <a id="levelEditDialog_saveBtn" class="btn btn-primary"> <s:message code="COMMIT_TAG" />
			</a>
			</div>
			<!--Modal footer-->
		</div>
	</div>
</div>--%>


</body>
<%@ include file="/page/comPage/comJS.html"%>
<script type="text/javascript" src="js/page/6000/6400.js?v=2017040801"></script>

</html>